﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WindowsGame1
{
    class Instrucoes:GerenciadorTelas
    {
        Texture2D texturaFundo, icone;
        Vector2 posicaoBotaoVoltar;

        public Instrucoes()
        {
            posicaoBotaoVoltar = new Vector2(640,530);
        }

        public void Load(ContentManager Content)
        {
            texturaFundo = Content.Load<Texture2D>("controleInstrucoes");
            icone = Content.Load<Texture2D>("icone");
        }

        public void Update(GameTime gameTime)
        {
            if ((Game1.ApertouJoystick(Buttons.A)) || (Game1.ApertouTeclado(Keys.Enter)))
            {
                estadoAtual = Estados.MENU;
            }
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texturaFundo, Vector2.Zero, Color.White);
            spriteBatch.Draw(icone, posicaoBotaoVoltar, Color.White);
        }
    }
}
